﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DangKy.ascx.cs" Inherits="VLXD.uc.reg" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<style type="text/css">
    .style1
    {
        width: 343px;
    }
    .style2
    {
        text-align: center;
        height: 34px;
    }
</style>
<div id="wp-centercol_inner">
    <div id="wp-pos-breadcrumbs">
        <span class="breadcrumbs pathway clearafter"><a href="../Default.aspx" class="home">
        </a>
            <div id="crumbs">
                <span class="current">Đăng Ký Thành Viên</span></div>
        </span>
    </div>
    <div id="wp-mainbody-content">
        <div id="wp-mainbody">
            <div class="com-content ">
                <div class="article">
                    <div class="wp-article-content">
                    </div>
                    &nbsp;<table width="80%" border="0" align="center" style="border-style: solID; border-width: 1px">
                        <tr>
                            <td colspan="3">
                                <h3 align="center">
                                    Đăng Ký Thành Viên
                                </h3>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Tên đăng nhập(*)
                            </td>
                            <td width="221">
                                <asp:TextBox ID="txtTenNguoiDung" runat="server" Width="310px"></asp:TextBox>
                            </td>
                            <td width="330">
                                <asp:RequiredFieldValidator ID="RequiredFieldValIDator1" runat="server" ControlToValidate="txtTenNguoiDung"
                                    Display="Dynamic" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Email (*)
                            </td>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server" Width="310px"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValIDator2" runat="server" ControlToValidate="txtEmail"
                                    Display="Dynamic" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                                    ErrorMessage="Sai định dạng Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Mật khẩu(*)
                            </td>
                            <td>
                                <asp:TextBox ID="txtMatKhau" runat="server" Width="310px" TextMode="Password"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValIDator3" runat="server" ControlToValidate="txtMatKhau"
                                    Display="Dynamic" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Xác nhận mật khẩu(*):
                            </td>
                            <td>
                                <asp:TextBox ID="txtMatKhau2" runat="server" Width="310px" TextMode="Password"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValIDator4" runat="server" ControlToValidate="txtMatKhau2"
                                    Display="Dynamic" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValIDator1" runat="server" ControlToCompare="txtMatKhau2"
                                    ControlToValidate="txtMatKhau" ErrorMessage="Sai mật khẩu"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Họ tên(*):
                            </td>
                            <td>
                                <asp:TextBox ID="txthoten" runat="server" Width="310px"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValIDator5" runat="server" ControlToValidate="txthoten"
                                    Display="Dynamic" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                  
                        <tr>
                            <td class="style1">
                                Địa chỉ
                            </td>
                            <td>
                                <asp:TextBox ID="txtdiachi" runat="server" Width="310px"></asp:TextBox>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Số điện thoại(*)
                            </td>
                            <td>
                                <asp:TextBox ID="txtsdt" runat="server" Width="310px"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValIDator6" runat="server" ControlToValidate="txtsdt"
                                    Display="Dynamic" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtsdt"
                                    ErrorMessage="Sai định dạng" ValidationExpression="0\d{9,10}"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <h3>
                                    <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
                                </h3>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" class="style2">
                                <asp:Button ID="bntdangky" runat="server" Text="Đăng Ký" CssClass="nguyengiang" OnClick="bntdangky_Click" />
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                    <p>
                        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True">
                        </asp:ScriptManager>
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>
